#ifndef __AP_STORAGE_SERVICE_H__
#define __AP_STORAGE_SERVICE_H__

extern void		ap_storage_service_init(void);
extern INT32S	ap_storage_service_storage_mount(void);
extern void		ap_storage_service_file_open_handle(INT32U type, INT16U usr_config);
extern void		ap_storage_service_timer_start(void);
extern void		ap_storage_service_timer_stop(void);
extern void		ap_storage_service_play_req(INT32U req_msg);
extern void		ap_storage_service_usb_plug_in(void);
extern INT8U	ap_state_config_date_stamp_get(void);
extern void		ap_state_config_date_stamp_set(INT8U flag);
extern void		ap_storage_service_file_del(void);
extern void		ap_storage_service_file_delete_all(void);
extern void		ap_storage_service_file_lock_one(void);
extern void		ap_storage_service_file_lock_all(void);
extern void		ap_storage_service_file_unlock_one(void);
extern void		ap_storage_service_file_unlock_all(void);
extern void		ap_storage_service_format_req(void);
extern INT32S	ap_storage_service_file_scan_wait(struct STFileNodeInfo *pstFNodeInfo, INT32S index);

#if C_CYCLIC_VIDEO_RECORD
extern void		ap_storage_service_cyclic_record_file_open_handle(void);
#endif

#if C_AUTO_DEL_FILE
extern void		ap_storage_service_freesize_check_switch(INT8U type);
extern INT32S	ap_storage_service_freesize_check_and_del(void);
#endif

extern void		ap_storage_service_write_file(INT16S fd, INT32U buf, INT32U size);
extern void		ap_storage_service_write_file_process(void);
extern void		ap_storage_service_close_file(INT16S fd);
extern void		ap_storage_service_close_file_process(void);

#endif // __AP_STORAGE_SERVICE_H__
